import request from '@/utils/request'

const userMod = '/user'

/**
 * [login 登录]
 */
export function login(data) {
  return request({
    url: `${userMod}/login`,
    method: 'post',
    data
  })
}

/**
 * [getUserInfo 获取个人信息]
 */
export function getUserInfo(data) {
  return request({
    url: `${userMod}/query`,
    method: 'post',
    data
  })
}

/**
 * [logou 登出]
 */
export function logout() {
  return request({
    url: `${userMod}/logout`,
    method: 'post'
  })
}